﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Automobile.service.Model;
using Automobile.service.DAL;
using System.Data;


namespace Automobile.service.BLL
{
    public class StatisticeBLL
    {
        StatisticsDAL dal = new StatisticsDAL();
        /// <summary>
        /// 查询
        /// </summary>
        /// <param name="Year">年</param>
        /// <param name="MonthStart">开始月份</param>
        /// <param name="MonthEnd">结束也分</param>
        /// <param name="PurChase_InOut">类型</param>
        /// <returns></returns>
        public List<Purchase> SearchPurchaseBydate(string DateStart, string DateEnd, string PurChase_InOut)
        {
            return dal.SearchPurchaseBydate(DateStart,DateEnd, PurChase_InOut);
        }
        /// <summary>
        /// 总金额
        /// </summary>
        /// <param name="Year"></param>
        /// <param name="MonthStart"></param>
        /// <param name="MonthEnd"></param>
        /// <param name="PurChase_InOut"></param>
        /// <returns></returns>
        public int SumMoney(string DateStart, string DateEnd, string PurChase_InOut)
        {
            return dal.SumMoney(DateStart, DateEnd, PurChase_InOut);
        }
    }
}
